﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Edades.aspx.cs" Inherits="ForrajeriaFRONT.ABM.Edades" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">
    #CargarDatos
    {
        padding-left:20px;
        margin: 0 auto;
    }
    
        #gridDatos
    {
        margin: 0 auto;
        width:100%;
    }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <div id="carga">
    <br />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red"  />
     <asp:RequiredFieldValidator ID="reqValidatorNombre" runat="server" 
        ErrorMessage="Debe ingresar una descripción" Display="None" ControlToValidate="txtDescripcion" ForeColor="Red"></asp:RequiredFieldValidator>
    <table id="CargaDatos" runat="server" width="40%" cellpadding="10"  >
    <tbody>
    
        <tr>
            <td>
                <asp:Label ID="lblDescripcion" runat="server" Text="Nombre:"></asp:Label>
            </td>
            <td>
            <asp:TextBox ID="txtDescripcion" runat="server" MaxLength="10"  ></asp:TextBox>
            </td>
            <td colspan="12">
                <asp:Button ID="btnGuardar" runat="server" Text="Guardar" 
                    PostBackUrl="~/ABM/Edades.aspx" onclick="btnGuardar_Click" />
           </td>
           <td>
           
            <asp:Label ID="lblResultado" runat="server" Text="" Width="200px"></asp:Label>
            </td>
        </tr>
        </tbody>
    
    </table>
    <br />
        
        
        <asp:GridView ID="gridDatos" runat="server"  
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False" Width="100%" 
            onrowdeleting="gridDatos_RowDeleting" 
                EnableSortingAndPagingCallbacks="True" 
                onselectedindexchanging="gridDatos_SelectedIndexChanging">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="CodigoEdad" HeaderText="Codigo" />
                <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" />
                <asp:CommandField ButtonType="Image" CancelText="" InsertText="" NewText="" 
                    SelectText="" UpdateText="" EditText="Editar" 
                    HeaderText="Editar" SelectImageUrl="~/images/modificarABM.jpg" 
                    ShowSelectButton="True" />
                <asp:CommandField ButtonType="Image" CancelText="" 
                    DeleteImageUrl="~/images/borrarABM.jpg" EditText="" InsertText="" NewText="" 
                    SelectText="" ShowDeleteButton="True" UpdateText="" ShowHeader="True" 
                    HeaderText="Quitar" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#EDEAE4" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            
        </asp:GridView>
     
    <br />
    <br />

    </div>
</asp:Content>
